<template>
  <div class="top">
    <div class="logo">
      <span class="iconfont iconnew"></span>
    </div>
    <div class="seek" @click="go_search">
      <span class="iconfont iconsearch"></span>
      <span>搜索新闻</span>
    </div>
    <div class="isLogon">
      <span class="iconfont iconwode" @click="goLoginClick"  ></span>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    goLoginClick(){
      this.$emit('goLoginClick')
    },
    go_search(){
      this.$emit('go_search')
    }
  },
};
</script>

<style lang="less" scoped>
.top {
  background-color: #ff0000;
  padding: 2vw 4vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fffdfd;
  .logo,
  .isLogon {
    width: 10.8vw;
    span {
      display: block;
      text-align: center;
      font-size: 5.333vw;
    }
  }
  .logo {
    span {
      font-size: 10.333vw;
      font-weight: 700;
    }
  }
  .isLogon {
    color: #ffd9d9;
  }
  .seek {
    flex: 1;
    text-align: center;
    background-color: #f97979;
    height: 10vw;
    line-height: 10vw;
    border-radius: 10vw;
    span {
      &:last-child {
        padding-left: 1.333vw;
      }
    }
  }
}
</style>